Intro

Basic calendar view

Just a basic calendar view. Can be a starter to create your own calendar.

Component has a slot where you can add your own 'day' element.

Demo

  • Attributes

    week-start0 for Sunday
    1 for Monday

    Defaults to Sunday

    Events

    selectedDateReturns the date in an object:
    { day: day, month: month, year: yeah }

Basic view (current month)

  • Component: calendar-view

    Attributes

    week-start0 for Sunday
    1 for Monday

    Defaults to Sunday

    Events

    selectedDateReturns the date in an object:
    { day: day, month: month, year: yeah }

Header

  • Component: calendar-header

    Events

    currentViewReturns a view that the calendar-view component can use.

    Use it in conjunction with the main calendar-view if you want to add basic navigation